﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;

namespace WIAssistant
{
    public class QueryParamsVM : DependencyObject
    {
        public string Query { get; set; }

        public QueryParamsVM()
        {
            Parameters = new ObservableCollection<StringPair>();
        }

        public ObservableCollection<StringPair> Parameters
        {
            get { return (ObservableCollection<StringPair>)GetValue(ParametersProperty); }
            set { SetValue(ParametersProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Parameters.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ParametersProperty =
            DependencyProperty.Register("Parameters", typeof(ObservableCollection<StringPair>), typeof(QueryParamsVM), new UIPropertyMetadata(null));
    }
}
